import request from '@/utils/request'

export function getCarList(data) {
  return request({
    url: '/car/getCarList',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function deleteCar(data) {
  return request({
    url: '/car/deleteCar',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function publicCar(data) {
  return request({
    url: '/car/publicCar',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function downCar(data) {
  return request({
    url: '/car/downCar',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function insertOrUpdateCar(data) {
  return request({
    url: '/car/insertOrUpdateCar',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function getCarTypeList() {
  return request({
    url: '/car/getCarTypeList',
    method: 'post'
  })
}

export function insertOrUpdateCarType(data) {
  return request({
    url: '/car/insertOrUpdateCarType',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function deleteCarType(data) {
  return request({
    url: '/car/deleteCarType',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function getCarLevelList() {
  return request({
    url: '/car/getCarLevelList',
    method: 'post'
  })
}

export function insertOrUpdateCarLevel(data) {
  return request({
    url: '/car/insertOrUpdateCarLevel',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function deleteCarLevel(data) {
  return request({
    url: '/car/deleteCarLevel',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

